// Copyright 2012 Emilie Gillet.
//
// Author: Emilie Gillet (emilie.o.gillet@gmail.com)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// -----------------------------------------------------------------------------
//
// Resources definitions.
//
// Automatically generated with:
// make resources


#include "edges/resources.h"

namespace edges {

static const prog_char str_res_dummy[] PROGMEM = "dummy";


const prog_char* const string_table[] = {
  str_res_dummy,
};

const prog_uint16_t lut_res_timer_count[] PROGMEM = {
   61156,  60716,  60279,  59846,  59415,  58988,  58563,  58142,
   57724,  57308,  56896,  56487,  56080,  55677,  55276,  54879,
   54484,  54092,  53703,  53316,  52933,  52552,  52174,  51799,
   51426,  51056,  50689,  50324,  49962,  49603,  49246,  48891,
   48540,  48190,  47844,  47500,  47158,  46819,  46482,  46147,
   45815,  45486,  45158,  44834,  44511,  44191,  43873,  43557,
   43244,  42933,  42624,  42317,  42013,  41711,  41410,  41113,
   40817,  40523,  40232,  39942,  39655,  39370,  39086,  38805,
   38526,  38249,  37974,  37700,  37429,  37160,  36893,  36627,
   36364,  36102,  35842,  35584,  35328,  35074,  34822,  34571,
   34323,  34076,  33831,  33587,  33346,  33106,  32868,  32631,
   32396,  32163,  31932,  31702,  31474,  31248,  31023,  30800,
   30578,
};
const prog_uint16_t lut_res_oscillator_increments[] PROGMEM = {
   18126,  18258,  18390,  18523,  18657,  18793,  18929,  19066,
   19204,  19343,  19484,  19625,  19767,  19910,  20054,  20200,
   20346,  20494,  20642,  20792,  20942,  21094,  21247,  21401,
   21556,  21712,  21870,  22028,  22188,  22348,  22510,  22674,
   22838,  23003,  23170,  23338,  23507,  23677,  23849,  24022,
   24196,  24371,  24548,  24726,  24905,  25085,  25267,  25450,
   25635,  25820,  26008,  26196,  26386,  26577,  26770,  26964,
   27159,  27356,  27554,  27754,  27955,  28157,  28361,  28567,
   28774,  28983,  29193,  29404,  29617,  29832,  30048,  30266,
   30485,  30706,  30928,  31153,  31378,  31606,  31835,  32065,
   32298,  32532,  32768,  33005,  33244,  33485,  33728,  33972,
   34218,  34466,  34716,  34968,  35221,  35476,  35733,  35992,
   36253,
};
const prog_uint16_t lut_res_bitcrusher_increments[] PROGMEM = {
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  65536,  65536,  65536,  65536,  65536,  65536,  65536,
   65536,  43805,  32897,  26338,  21960,  18830,  16481,  14653,
   13190,  11992,  10994,  10150,   9425,   8798,   8248,   7764,
    7333,   6947,   6600,   6286,   6000,   5740,   5501,   5281,
    5078,   4890,   4715,   4553,   4401,   4259,   4126,   4001,
    3883,   3772,   3668,   3569,   3475,   3386,   3301,   3221,
    3144,   3071,   3001,   2934,   2871,   2809,   2751,   2695,
    2641,   2589,   2539,   2491,   2445,   2401,   2358,   2317,
    2277,   2238,   2201,   2165,   2130,   2096,   2063,   2032,
    2001,   1971,   1942,   1914,   1886,   1860,   1834,   1809,
    1784,   1761,   1737,   1715,   1693,   1671,   1651,   1630,
    1610,   1591,   1572,   1553,   1535,   1518,   1501,   1484,
    1467,   1451,   1435,   1420,   1405,   1390,   1375,   1361,
    1347,   1334,   1320,   1307,   1295,   1282,   1270,   1258,
    1246,   1234,   1223,   1211,   1200,   1190,   1179,   1168,
    1158,   1148,   1138,   1129,   1119,   1110,   1100,   1091,
    1082,   1073,   1065,   1056,   1048,   1040,   1031,   1024,
};


const prog_uint16_t* const lookup_table_table[] = {
  lut_res_timer_count,
  lut_res_oscillator_increments,
  lut_res_bitcrusher_increments,
};



const prog_uint32_t* const lookup_table_32_table[] = {
};

const prog_uint8_t wav_res_bandlimited_triangle_0[] PROGMEM = {
       2,      2,      5,      3,      6,      5,      8,      8,
       8,     11,     10,     12,     13,     13,     15,     16,
      17,     18,     18,     20,     21,     23,     22,     23,
      26,     26,     27,     28,     28,     31,     30,     33,
      32,     34,     35,     36,     36,     38,     39,     40,
      40,     41,     44,     42,     46,     45,     46,     48,
      48,     50,     50,     51,     53,     54,     54,     55,
      57,     58,     57,     61,     59,     62,     63,     63,
      64,     66,     67,     66,     69,     69,     71,     71,
      72,     74,     73,     76,     76,     78,     77,     79,
      81,     80,     83,     83,     84,     85,     85,     88,
      88,     89,     90,     91,     92,     93,     93,     96,
      96,     97,     98,     99,     99,    102,    102,    102,
     104,    106,    105,    107,    108,    108,    111,    110,
     111,    114,    113,    115,    116,    116,    118,    118,
     120,    120,    123,    121,    125,    123,    127,    126,
     127,    129,    130,    130,    131,    134,    132,    135,
     136,    136,    138,    138,    139,    141,    141,    143,
     143,    145,    144,    147,    148,    147,    150,    150,
     151,    152,    154,    154,    154,    157,    157,    159,
     158,    160,    162,    161,    164,    164,    164,    167,
     167,    168,    169,    170,    172,    171,    173,    174,
     176,    175,    177,    178,    179,    180,    181,    182,
     182,    184,    185,    186,    187,    187,    189,    189,
     192,    191,    192,    194,    195,    196,    196,    197,
     200,    199,    200,    203,    202,    203,    205,    206,
     207,    207,    208,    211,    209,    213,    212,    213,
     215,    215,    217,    217,    218,    220,    220,    221,
     223,    222,    225,    225,    226,    228,    227,    230,
     229,    232,    232,    234,    233,    236,    236,    237,
     238,    240,    240,    242,    241,    244,    245,    245,
     245,    249,    247,    249,    250,    251,    251,    253,
     253,    254,    253,    250,    252,    249,    249,    248,
     247,    246,    246,    243,    243,    243,    240,    241,
     238,    239,    237,    235,    236,    233,    234,    231,
     231,    230,    229,    228,    226,    227,    224,    224,
     224,    221,    221,    220,    219,    218,    217,    217,
     214,    215,    213,    212,    211,    211,    209,    208,
     207,    207,    205,    204,    204,    201,    202,    201,
     198,    199,    197,    196,    196,    194,    193,    192,
     192,    190,    189,    188,    188,    186,    186,    183,
     185,    181,    182,    181,    179,    178,    178,    177,
     175,    175,    173,    173,    171,    171,    169,    170,
     166,    168,    165,    164,    164,    163,    161,    161,
     160,    158,    158,    156,    156,    155,    153,    153,
     152,    150,    150,    149,    148,    146,    146,    145,
     143,    144,    141,    141,    140,    139,    138,    137,
     135,    136,    133,    134,    131,    131,    131,    128,
     128,    127,    126,    125,    124,    123,    122,    121,
     120,    118,    119,    117,    116,    114,    115,    113,
     112,    111,    110,    110,    107,    108,    106,    105,
     104,    103,    103,    101,    100,    100,     98,     97,
      96,     96,     94,     93,     93,     90,     91,     90,
      88,     86,     88,     84,     85,     83,     83,     81,
      80,     79,     79,     77,     77,     75,     75,     73,
      73,     71,     70,     70,     69,     68,     66,     65,
      65,     64,     63,     61,     60,     61,     58,     57,
      58,     54,     56,     53,     53,     51,     51,     50,
      48,     48,     46,     46,     45,     44,     42,     42,
      40,     40,     40,     37,     36,     37,     35,     33,
      34,     31,     32,     30,     28,     29,     26,     27,
      25,     24,     22,     23,     21,     19,     20,     17,
      17,     16,     15,     13,     14,     11,     11,     10,
       8,      9,      7,      6,      5,      4,      4,      3,
       1,
};
const prog_uint8_t wav_res_bandlimited_triangle_1[] PROGMEM = {
       2,      4,      5,      6,      6,      7,     10,      8,
      12,     10,     14,     12,     15,     16,     15,     18,
      19,     18,     21,     21,     22,     24,     23,     26,
      25,     28,     28,     29,     30,     30,     33,     32,
      35,     34,     36,     37,     38,     38,     40,     41,
      41,     43,     44,     44,     46,     47,     46,     50,
      49,     50,     51,     53,     54,     53,     56,     57,
      56,     59,     59,     60,     61,     62,     63,     65,
      64,     67,     66,     68,     70,     69,     71,     72,
      73,     73,     76,     75,     76,     79,     78,     80,
      80,     82,     83,     83,     84,     86,     87,     87,
      88,     90,     90,     91,     93,     93,     94,     95,
      97,     97,     97,    100,    101,    100,    102,    103,
     104,    105,    106,    107,    108,    109,    109,    112,
     111,    113,    113,    115,    116,    117,    117,    119,
     119,    121,    121,    123,    123,    125,    125,    126,
     128,    128,    130,    130,    131,    132,    133,    135,
     134,    137,    137,    138,    139,    140,    141,    142,
     143,    144,    144,    147,    146,    148,    149,    150,
     150,    152,    153,    154,    154,    155,    157,    158,
     158,    160,    160,    162,    161,    165,    164,    165,
     166,    168,    167,    170,    171,    170,    173,    172,
     175,    175,    176,    177,    178,    179,    179,    182,
     182,    182,    184,    185,    186,    187,    187,    189,
     190,    190,    192,    193,    193,    194,    196,    197,
     197,    199,    199,    200,    202,    201,    205,    203,
     206,    206,    207,    209,    208,    211,    211,    212,
     213,    213,    216,    216,    217,    218,    218,    221,
     220,    222,    223,    223,    226,    225,    226,    229,
     228,    229,    231,    232,    232,    234,    234,    235,
     237,    238,    237,    240,    241,    240,    243,    243,
     245,    244,    246,    248,    248,    249,    250,    251,
     253,    254,    250,    251,    250,    249,    247,    247,
     246,    244,    245,    242,    241,    242,    239,    240,
     237,    237,    236,    235,    234,    233,    232,    230,
     231,    229,    229,    226,    226,    225,    225,    223,
     222,    221,    221,    218,    219,    218,    215,    216,
     215,    212,    214,    210,    211,    210,    208,    207,
     207,    206,    204,    203,    204,    201,    200,    200,
     199,    198,    196,    196,    195,    194,    192,    193,
     190,    190,    189,    187,    188,    186,    184,    185,
     183,    181,    182,    180,    179,    178,    177,    176,
     175,    175,    173,    172,    171,    171,    169,    168,
     167,    167,    165,    165,    163,    162,    162,    161,
     158,    160,    157,    156,    156,    155,    153,    153,
     151,    152,    148,    150,    147,    147,    146,    145,
     143,    144,    141,    141,    140,    138,    139,    137,
     136,    134,    135,    133,    131,    132,    130,    129,
     129,    126,    126,    126,    124,    123,    123,    120,
     121,    120,    117,    118,    117,    115,    114,    113,
     114,    110,    111,    110,    108,    108,    106,    106,
     104,    104,    103,    102,    100,    100,     98,     99,
      96,     96,     95,     93,     94,     91,     91,     91,
      88,     88,     87,     86,     85,     84,     83,     82,
      82,     79,     80,     78,     77,     76,     75,     75,
      73,     72,     72,     69,     71,     67,     68,     66,
      66,     64,     64,     62,     62,     60,     59,     60,
      57,     56,     56,     55,     53,     53,     52,     51,
      49,     49,     48,     46,     47,     44,     44,     43,
      42,     41,     40,     38,     39,     37,     36,     35,
      34,     33,     32,     31,     30,     30,     28,     27,
      26,     25,     25,     23,     22,     22,     20,     19,
      19,     17,     17,     15,     14,     14,     13,     11,
      10,     11,      7,      9,      6,      5,      6,      3,
       2,
};
const prog_uint8_t wav_res_bandlimited_triangle_2[] PROGMEM = {
       2,      2,      4,      4,      6,      7,      7,      8,
      10,     11,     11,     12,     14,     14,     15,     17,
      18,     17,     20,     20,     22,     22,     23,     24,
      26,     25,     28,     28,     30,     29,     32,     31,
      34,     34,     35,     36,     37,     38,     39,     40,
      41,     42,     43,     44,     44,     47,     47,     47,
      49,     50,     51,     52,     53,     53,     55,     56,
      56,     58,     59,     60,     60,     62,     62,     64,
      65,     65,     67,     68,     67,     71,     70,     71,
      73,     74,     73,     77,     75,     78,     79,     78,
      81,     82,     82,     83,     84,     86,     85,     88,
      89,     88,     91,     91,     92,     93,     94,     96,
      95,     98,     97,    100,     99,    102,    102,    102,
     105,    105,    105,    108,    107,    109,    110,    111,
     112,    113,    113,    115,    116,    117,    118,    118,
     120,    120,    123,    122,    123,    126,    124,    128,
     127,    129,    129,    131,    131,    133,    133,    135,
     135,    137,    137,    138,    140,    140,    142,    142,
     143,    145,    145,    146,    148,    148,    149,    150,
     151,    153,    153,    154,    155,    156,    157,    159,
     158,    161,    161,    161,    164,    164,    165,    165,
     168,    168,    168,    170,    172,    171,    173,    174,
     175,    175,    178,    177,    179,    179,    182,    181,
     182,    185,    184,    186,    186,    188,    189,    189,
     191,    192,    192,    193,    195,    196,    196,    197,
     199,    200,    199,    203,    201,    204,    204,    206,
     206,    207,    209,    209,    210,    211,    213,    213,
     214,    215,    216,    218,    217,    220,    220,    221,
     222,    223,    224,    225,    226,    228,    227,    229,
     230,    231,    232,    233,    233,    236,    235,    237,
     239,    237,    241,    240,    243,    242,    243,    246,
     245,    246,    249,    248,    250,    250,    252,    252,
     255,    253,    252,    251,    251,    249,    248,    247,
     247,    245,    245,    242,    243,    242,    240,    239,
     239,    237,    236,    236,    235,    233,    232,    232,
     230,    230,    229,    227,    227,    225,    225,    223,
     223,    222,    220,    220,    219,    217,    218,    214,
     216,    213,    213,    212,    211,    209,    209,    208,
     207,    206,    204,    205,    202,    203,    200,    200,
     199,    198,    197,    196,    195,    194,    193,    192,
     191,    190,    189,    188,    188,    185,    186,    184,
     183,    182,    181,    181,    179,    178,    177,    176,
     176,    174,    173,    173,    171,    170,    169,    169,
     168,    165,    166,    165,    163,    162,    162,    160,
     160,    158,    158,    156,    156,    154,    154,    152,
     152,    151,    149,    149,    147,    148,    144,    146,
     143,    143,    141,    142,    139,    139,    137,    138,
     135,    135,    133,    134,    132,    130,    130,    129,
     128,    127,    126,    125,    123,    124,    122,    121,
     119,    120,    118,    117,    115,    116,    114,    113,
     113,    110,    111,    108,    109,    107,    106,    106,
     103,    104,    102,    102,    100,     99,     98,     97,
      97,     96,     93,     94,     92,     92,     90,     90,
      88,     87,     87,     86,     84,     83,     83,     81,
      81,     80,     78,     78,     76,     76,     74,     74,
      73,     72,     70,     69,     70,     67,     67,     66,
      64,     64,     63,     62,     61,     59,     59,     59,
      56,     55,     56,     54,     52,     53,     50,     50,
      50,     47,     47,     47,     44,     44,     44,     41,
      42,     39,     40,     38,     37,     36,     35,     35,
      32,     33,     31,     30,     30,     27,     28,     27,
      24,     25,     23,     23,     20,     22,     18,     19,
      17,     17,     15,     15,     13,     12,     12,     11,
       8,     10,      7,      6,      6,      5,      3,      3,
       1,
};
const prog_uint8_t wav_res_bandlimited_triangle_3[] PROGMEM = {
       2,      1,      3,      4,      4,      6,      7,      8,
       9,     10,     10,     12,     13,     13,     15,     16,
      17,     18,     18,     19,     22,     21,     22,     25,
      24,     25,     27,     28,     29,     29,     30,     32,
      33,     33,     35,     36,     35,     39,     38,     39,
      41,     41,     43,     43,     45,     45,     47,     47,
      48,     50,     50,     52,     52,     53,     55,     55,
      57,     56,     60,     58,     61,     61,     62,     63,
      65,     65,     67,     66,     69,     69,     70,     72,
      72,     72,     75,     76,     75,     77,     79,     79,
      80,     81,     82,     83,     84,     86,     85,     88,
      87,     90,     89,     92,     92,     92,     95,     95,
      95,     98,     97,    100,     99,    101,    103,    102,
     104,    105,    106,    107,    107,    110,    109,    111,
     112,    113,    114,    114,    116,    117,    118,    118,
     121,    120,    122,    122,    124,    125,    126,    126,
     128,    129,    129,    131,    132,    132,    134,    135,
     135,    137,    137,    139,    139,    141,    142,    142,
     144,    144,    146,    146,    148,    148,    150,    150,
     152,    152,    154,    154,    155,    157,    157,    159,
     159,    160,    162,    162,    164,    164,    165,    167,
     167,    168,    169,    171,    171,    172,    174,    174,
     175,    176,    178,    178,    179,    180,    181,    183,
     182,    185,    185,    187,    186,    188,    190,    190,
     190,    193,    193,    194,    195,    196,    198,    197,
     199,    200,    202,    201,    203,    204,    205,    207,
     206,    208,    209,    210,    211,    211,    214,    214,
     214,    216,    217,    218,    219,    220,    220,    223,
     222,    224,    224,    227,    226,    228,    229,    230,
     230,    232,    232,    235,    234,    236,    236,    238,
     239,    240,    240,    241,    243,    244,    245,    245,
     247,    248,    247,    250,    251,    252,    253,    252,
     255,    254,    253,    252,    251,    249,    249,    248,
     247,    245,    245,    245,    242,    242,    241,    240,
     238,    239,    236,    237,    234,    234,    234,    231,
     231,    230,    229,    228,    227,    226,    225,    224,
     223,    222,    221,    220,    220,    217,    217,    217,
     214,    215,    213,    211,    212,    211,    208,    208,
     208,    205,    206,    204,    203,    203,    201,    199,
     200,    199,    196,    197,    195,    194,    194,    192,
     191,    190,    190,    188,    187,    187,    185,    184,
     184,    182,    181,    181,    179,    179,    177,    176,
     176,    174,    174,    172,    171,    171,    170,    168,
     167,    167,    165,    165,    163,    163,    162,    160,
     159,    159,    158,    156,    156,    154,    154,    153,
     151,    151,    149,    150,    146,    148,    145,    144,
     145,    142,    142,    140,    140,    139,    138,    136,
     136,    135,    133,    134,    131,    131,    130,    128,
     128,    128,    125,    124,    125,    122,    123,    120,
     120,    119,    118,    117,    115,    116,    113,    114,
     111,    111,    110,    110,    107,    107,    106,    105,
     104,    104,    101,    101,    100,    100,     97,     97,
      97,     94,     95,     93,     91,     92,     90,     90,
      87,     87,     87,     85,     84,     83,     82,     82,
      79,     80,     78,     78,     75,     76,     74,     73,
      73,     71,     70,     69,     69,     67,     66,     66,
      64,     63,     63,     61,     60,     60,     58,     58,
      56,     55,     55,     53,     53,     51,     50,     50,
      48,     48,     46,     46,     45,     42,     44,     41,
      40,     40,     38,     38,     37,     35,     35,     33,
      33,     31,     31,     30,     28,     28,     27,     25,
      25,     24,     22,     22,     20,     21,     18,     17,
      18,     15,     15,     14,     12,     12,     11,     10,
       8,      9,      6,      6,      5,      3,      3,      2,
       2,
};
const prog_uint8_t wav_res_bandlimited_triangle_4[] PROGMEM = {
       2,      1,      2,      2,      4,      4,      4,      7,
       6,      8,     10,     11,     11,     13,     14,     15,
      16,     17,     17,     19,     20,     21,     21,     22,
      24,     24,     25,     27,     27,     29,     29,     31,
      32,     33,     33,     35,     36,     36,     39,     38,
      39,     41,     42,     42,     44,     44,     45,     47,
      48,     48,     50,     51,     51,     53,     54,     54,
      56,     57,     58,     58,     60,     60,     63,     61,
      64,     65,     65,     67,     67,     69,     70,     70,
      72,     73,     74,     74,     76,     77,     78,     78,
      80,     80,     82,     83,     83,     85,     85,     87,
      88,     88,     90,     91,     91,     93,     94,     95,
      96,     96,     98,     98,    101,     99,    103,    102,
     104,    104,    106,    107,    107,    109,    110,    110,
     113,    112,    114,    114,    117,    116,    118,    118,
     120,    121,    122,    122,    123,    126,    125,    127,
     127,    129,    130,    131,    132,    132,    135,    134,
     135,    138,    137,    139,    140,    140,    142,    143,
     143,    145,    146,    146,    148,    149,    150,    150,
     153,    152,    154,    155,    156,    156,    158,    159,
     160,    160,    162,    163,    163,    165,    166,    166,
     169,    168,    170,    171,    171,    174,    173,    176,
     175,    176,    179,    178,    180,    181,    182,    182,
     184,    184,    186,    188,    187,    188,    191,    191,
     191,    194,    193,    195,    196,    197,    197,    200,
     199,    200,    203,    202,    204,    204,    206,    208,
     207,    209,    210,    210,    213,    213,    214,    215,
     215,    217,    218,    219,    219,    221,    222,    222,
     225,    223,    227,    227,    227,    230,    230,    231,
     232,    233,    234,    234,    237,    236,    238,    239,
     239,    240,    242,    243,    243,    246,    245,    248,
     248,    249,    251,    252,    252,    253,    253,    255,
     253,    254,    254,    253,    252,    252,    251,    249,
     249,    247,    246,    245,    244,    243,    242,    240,
     239,    240,    236,    238,    236,    235,    233,    234,
     232,    231,    231,    228,    229,    227,    225,    225,
     225,    222,    221,    222,    219,    219,    218,    217,
     215,    216,    214,    212,    213,    211,    210,    209,
     207,    208,    206,    204,    204,    203,    202,    201,
     199,    199,    198,    197,    196,    194,    195,    193,
     191,    192,    189,    190,    187,    188,    185,    185,
     183,    184,    181,    181,    180,    178,    179,    176,
     176,    175,    174,    173,    172,    171,    169,    170,
     167,    168,    165,    164,    165,    162,    162,    161,
     160,    158,    158,    157,    156,    155,    153,    154,
     151,    151,    151,    147,    149,    147,    145,    145,
     144,    142,    143,    140,    139,    140,    137,    137,
     136,    135,    133,    134,    131,    131,    130,    129,
     127,    127,    126,    125,    123,    123,    122,    120,
     121,    118,    117,    118,    115,    115,    114,    112,
     113,    110,    110,    109,    108,    106,    106,    105,
     103,    103,    101,    102,     99,     98,     99,     96,
      96,     94,     95,     92,     92,     91,     90,     88,
      88,     87,     85,     85,     84,     82,     82,     80,
      80,     79,     77,     78,     75,     74,     75,     72,
      72,     71,     70,     68,     68,     66,     66,     65,
      63,     62,     63,     60,     59,     59,     58,     57,
      55,     55,     54,     53,     52,     50,     49,     50,
      47,     46,     46,     45,     43,     43,     41,     40,
      40,     39,     38,     36,     37,     34,     33,     34,
      31,     31,     30,     28,     27,     27,     26,     23,
      24,     23,     21,     20,     20,     19,     18,     17,
      15,     16,     13,     13,     12,     11,      9,      8,
       7,      6,      5,      4,      3,      2,      2,      2,
       2,
};
const prog_uint8_t wav_res_bandlimited_triangle_5[] PROGMEM = {
       2,      1,      1,      3,      2,      2,      3,      4,
       3,      6,      4,      7,      7,      8,      8,     10,
      11,     12,     13,     13,     16,     17,     17,     18,
      21,     21,     22,     24,     24,     27,     27,     28,
      30,     30,     33,     32,     35,     34,     37,     37,
      38,     40,     40,     42,     41,     44,     44,     46,
      45,     47,     48,     49,     50,     50,     52,     53,
      53,     54,     56,     56,     58,     57,     60,     60,
      62,     62,     63,     64,     66,     66,     68,     69,
      69,     71,     72,     74,     73,     76,     76,     77,
      79,     80,     80,     82,     84,     83,     85,     87,
      86,     89,     90,     89,     92,     92,     93,     95,
      95,     96,     98,     97,    100,    100,    101,    102,
     103,    104,    105,    106,    106,    109,    108,    110,
     111,    112,    113,    113,    115,    117,    116,    118,
     119,    121,    121,    122,    123,    125,    125,    127,
     128,    128,    131,    130,    133,    133,    134,    135,
     137,    137,    139,    139,    141,    142,    142,    143,
     146,    145,    147,    147,    149,    150,    150,    151,
     153,    154,    154,    155,    157,    156,    160,    158,
     160,    162,    162,    163,    164,    166,    165,    168,
     168,    170,    169,    173,    171,    175,    174,    176,
     177,    178,    179,    180,    181,    183,    183,    186,
     184,    188,    187,    190,    189,    192,    192,    192,
     196,    194,    196,    198,    198,    199,    200,    202,
     201,    203,    204,    205,    206,    206,    208,    208,
     210,    210,    211,    213,    213,    213,    217,    215,
     217,    219,    219,    220,    221,    223,    224,    224,
     227,    226,    229,    229,    230,    233,    233,    234,
     235,    237,    238,    240,    239,    242,    242,    245,
     243,    247,    246,    248,    248,    250,    249,    252,
     251,    252,    253,    252,    254,    254,    253,    254,
     254,    254,    254,    254,    253,    253,    253,    251,
     252,    251,    251,    248,    249,    248,    246,    246,
     245,    244,    242,    242,    240,    239,    238,    237,
     235,    235,    232,    233,    231,    228,    230,    226,
     226,    225,    224,    222,    221,    221,    220,    217,
     218,    216,    215,    214,    213,    213,    211,    210,
     210,    208,    208,    207,    205,    206,    203,    203,
     202,    201,    200,    200,    198,    197,    196,    195,
     195,    193,    192,    191,    191,    188,    188,    187,
     186,    185,    183,    182,    182,    180,    179,    179,
     176,    176,    174,    175,    172,    171,    171,    169,
     169,    166,    167,    165,    165,    162,    163,    161,
     160,    160,    157,    158,    157,    155,    154,    153,
     153,    152,    150,    150,    148,    149,    145,    147,
     144,    144,    142,    142,    141,    139,    139,    137,
     137,    135,    134,    134,    131,    132,    130,    128,
     128,    127,    126,    124,    123,    123,    120,    122,
     118,    118,    117,    116,    115,    114,    113,    111,
     112,    109,    109,    108,    107,    105,    106,    104,
     102,    103,    101,    100,     99,     98,     98,     95,
      97,     93,     94,     92,     91,     91,     89,     88,
      87,     87,     85,     83,     84,     81,     82,     79,
      78,     78,     77,     74,     75,     73,     72,     71,
      69,     70,     66,     68,     64,     65,     64,     62,
      61,     60,     60,     57,     58,     57,     55,     54,
      54,     52,     52,     50,     51,     48,     48,     47,
      46,     45,     45,     42,     43,     42,     39,     40,
      38,     38,     36,     35,     34,     33,     32,     30,
      30,     29,     27,     26,     24,     25,     21,     22,
      20,     18,     19,     15,     16,     13,     14,     12,
      10,     10,      9,      8,      6,      7,      5,      5,
       4,      3,      4,      1,      3,      2,      1,      2,
       2,
};
const prog_uint8_t wav_res_bandlimited_triangle_6[] PROGMEM = {
       1,      2,      2,      1,      2,      1,      3,      1,
       2,      3,      2,      3,      2,      4,      3,      4,
       3,      5,      4,      6,      4,      6,      7,      5,
       8,      7,      8,      8,      9,     10,     10,     10,
      11,     12,     12,     13,     14,     14,     15,     15,
      17,     18,     17,     18,     21,     19,     22,     21,
      23,     24,     25,     25,     26,     27,     29,     29,
      30,     31,     32,     34,     33,     36,     36,     38,
      38,     40,     40,     42,     43,     44,     46,     46,
      47,     50,     49,     52,     52,     55,     54,     56,
      58,     59,     61,     60,     64,     64,     65,     67,
      68,     70,     71,     72,     74,     76,     76,     77,
      81,     80,     82,     84,     86,     86,     88,     90,
      91,     92,     95,     95,     97,     99,    100,    101,
     104,    104,    106,    109,    108,    111,    112,    114,
     116,    116,    119,    120,    122,    122,    125,    127,
     127,    130,    130,    132,    135,    135,    137,    139,
     140,    142,    142,    146,    145,    149,    149,    151,
     152,    154,    155,    157,    159,    160,    161,    163,
     164,    166,    168,    168,    171,    172,    172,    175,
     177,    177,    178,    181,    182,    183,    184,    187,
     186,    189,    191,    190,    193,    194,    196,    196,
     197,    201,    199,    202,    203,    205,    205,    206,
     208,    209,    211,    211,    212,    214,    215,    216,
     217,    218,    219,    220,    222,    222,    223,    225,
     225,    226,    228,    228,    229,    230,    231,    232,
     232,    234,    235,    235,    236,    236,    239,    237,
     240,    240,    240,    241,    242,    243,    243,    243,
     245,    245,    246,    246,    246,    247,    248,    248,
     249,    249,    249,    250,    250,    251,    250,    252,
     252,    251,    253,    252,    252,    254,    252,    254,
     253,    254,    253,    254,    254,    254,    253,    255,
     254,    254,    253,    255,    253,    255,    252,    255,
     253,    253,    253,    253,    252,    253,    252,    252,
     252,    251,    251,    250,    250,    251,    249,    248,
     250,    247,    248,    248,    245,    247,    246,    244,
     245,    244,    243,    242,    242,    242,    240,    239,
     240,    238,    238,    237,    236,    234,    236,    233,
     232,    233,    230,    231,    228,    229,    227,    227,
     225,    224,    223,    223,    221,    221,    218,    219,
     217,    215,    216,    213,    212,    212,    211,    208,
     208,    207,    205,    204,    204,    201,    200,    200,
     197,    197,    196,    193,    193,    191,    191,    188,
     187,    186,    185,    182,    183,    180,    178,    178,
     177,    174,    173,    171,    172,    167,    169,    165,
     164,    164,    161,    159,    159,    158,    154,    155,
     151,    152,    149,    148,    146,    145,    142,    143,
     140,    138,    138,    134,    135,    133,    130,    129,
     128,    126,    125,    123,    122,    119,    119,    117,
     116,    113,    112,    112,    108,    108,    106,    105,
     103,    102,    100,     98,     97,     96,     94,     93,
      90,     91,     87,     87,     86,     83,     82,     81,
      80,     78,     76,     75,     75,     71,     72,     69,
      68,     68,     64,     65,     63,     61,     61,     58,
      58,     57,     54,     54,     53,     51,     50,     49,
      47,     47,     46,     43,     43,     43,     39,     41,
      38,     37,     37,     35,     34,     33,     32,     32,
      29,     30,     28,     28,     25,     26,     25,     23,
      23,     22,     21,     20,     20,     19,     17,     17,
      17,     16,     14,     15,     13,     14,     11,     13,
      10,     11,     10,      9,      9,      9,      7,      8,
       7,      6,      7,      5,      5,      5,      5,      4,
       3,      5,      3,      3,      2,      4,      2,      2,
       2,      2,      2,      2,      2,      0,      3,      1,
       1,
};
const prog_uint8_t wav_res_bandlimited_nes_triangle_0[] PROGMEM = {
       2,      2,      2,      2,      1,      2,      2,      0,
       3,      1,      1,      2,      2,      2,      1,      3,
      15,     15,     15,     16,     16,     16,     16,     16,
      18,     16,     18,     17,     18,     18,     18,     19,
      31,     32,     31,     33,     31,     33,     33,     32,
      33,     34,     32,     34,     34,     34,     33,     34,
      48,     47,     47,     47,     48,     48,     49,     47,
      49,     49,     49,     49,     49,     50,     49,     51,
      62,     64,     63,     64,     63,     64,     65,     64,
      64,     65,     65,     66,     64,     67,     64,     67,
      79,     78,     80,     79,     79,     80,     80,     80,
      80,     81,     80,     81,     81,     81,     82,     81,
      95,     95,     94,     96,     95,     96,     96,     95,
      97,     96,     97,     97,     96,     98,     98,     97,
     110,    111,    111,    111,    111,    112,    111,    112,
     112,    112,    113,    112,    112,    114,    113,    113,
     126,    127,    126,    127,    127,    127,    128,    127,
     129,    127,    128,    129,    129,    129,    128,    130,
     143,    141,    143,    143,    143,    143,    143,    144,
     144,    143,    144,    145,    144,    145,    145,    145,
     157,    159,    158,    158,    159,    159,    159,    159,
     160,    159,    161,    159,    161,    160,    161,    161,
     174,    174,    174,    174,    176,    174,    175,    175,
     176,    176,    175,    176,    177,    176,    176,    177,
     190,    190,    189,    191,    190,    191,    190,    191,
     191,    192,    191,    192,    192,    192,    192,    193,
     205,    206,    206,    206,    207,    206,    207,    206,
     208,    208,    206,    209,    208,    207,    210,    207,
     222,    222,    221,    222,    222,    223,    221,    224,
     222,    223,    223,    223,    224,    224,    223,    225,
     237,    237,    237,    238,    238,    238,    239,    239,
     238,    240,    239,    239,    241,    240,    240,    240,
     254,    254,    253,    253,    255,    254,    253,    255,
     253,    255,    253,    255,    253,    254,    253,    253,
     242,    239,    241,    239,    240,    240,    238,    240,
     238,    239,    238,    238,    238,    237,    238,    236,
     225,    223,    225,    222,    224,    224,    222,    222,
     224,    222,    222,    222,    221,    223,    221,    222,
     208,    208,    209,    207,    208,    208,    208,    206,
     207,    208,    205,    207,    207,    205,    205,    207,
     191,    194,    191,    192,    192,    192,    191,    191,
     190,    192,    190,    191,    189,    191,    189,    190,
     177,    176,    177,    175,    177,    176,    175,    176,
     175,    175,    175,    174,    175,    175,    173,    174,
     161,    161,    161,    159,    161,    160,    159,    160,
     159,    160,    158,    159,    158,    158,    159,    157,
     146,    144,    145,    144,    145,    144,    143,    145,
     142,    145,    142,    143,    143,    143,    142,    142,
     129,    130,    128,    129,    129,    128,    128,    128,
     127,    128,    127,    127,    127,    126,    127,    126,
     114,    112,    114,    112,    113,    112,    112,    112,
     112,    111,    112,    111,    112,    110,    110,    112,
      96,     99,     96,     98,     96,     97,     96,     97,
      95,     97,     95,     95,     96,     94,     95,     95,
      82,     80,     83,     80,     81,     80,     81,     80,
      81,     79,     80,     79,     79,     80,     79,     78,
      66,     66,     66,     65,     65,     65,     64,     66,
      63,     65,     64,     63,     65,     62,     64,     62,
      51,     49,     50,     49,     50,     48,     49,     49,
      48,     48,     47,     49,     47,     48,     46,     48,
      34,     33,     35,     33,     34,     32,     34,     33,
      33,     32,     32,     33,     32,     31,     32,     31,
      19,     19,     17,     18,     17,     18,     17,     16,
      17,     16,     17,     15,     16,     15,     16,     14,
       2,
};
const prog_uint8_t wav_res_bandlimited_nes_triangle_1[] PROGMEM = {
       1,      7,      8,      6,      7,      4,      7,      6,
       8,      6,      5,      5,      8,      7,      7,      1,
      27,     20,     21,     21,     22,     21,     22,     21,
      22,     21,     22,     20,     22,     23,     21,     18,
      41,     36,     35,     36,     38,     37,     37,     35,
      37,     37,     37,     36,     36,     39,     36,     33,
      56,     51,     51,     51,     53,     53,     50,     52,
      52,     52,     52,     51,     52,     53,     52,     48,
      71,     67,     65,     67,     68,     68,     65,     68,
      66,     69,     66,     66,     67,     69,     67,     63,
      86,     82,     81,     82,     83,     83,     81,     81,
      84,     82,     82,     82,     81,     84,     83,     78,
     102,     96,     96,     98,     98,     98,     96,     97,
      98,     99,     96,     96,     98,     99,     98,     93,
     117,    111,    112,    113,    113,    112,    113,    111,
     114,    113,    112,    112,    113,    113,    114,    107,
     133,    127,    127,    127,    129,    127,    128,    127,
     129,    128,    127,    127,    128,    129,    128,    124,
     147,    142,    142,    143,    143,    144,    142,    143,
     143,    143,    143,    143,    142,    145,    142,    140,
     162,    158,    156,    159,    158,    159,    158,    156,
     160,    158,    158,    158,    158,    159,    158,    155,
     177,    173,    172,    173,    174,    174,    173,    172,
     174,    174,    173,    173,    173,    174,    175,    168,
     194,    187,    187,    188,    191,    188,    187,    189,
     189,    189,    188,    187,    189,    190,    190,    183,
     208,    204,    201,    205,    204,    204,    202,    204,
     205,    203,    204,    203,    203,    206,    204,    199,
     223,    219,    217,    219,    220,    218,    219,    219,
     219,    219,    219,    218,    218,    222,    218,    215,
     238,    234,    233,    233,    236,    233,    234,    234,
     235,    234,    233,    234,    234,    236,    234,    229,
     254,    250,    247,    249,    249,    251,    249,    249,
     248,    249,    251,    250,    248,    247,    250,    254,
     230,    233,    236,    234,    234,    234,    233,    235,
     234,    234,    234,    235,    233,    234,    233,    238,
     215,    219,    220,    220,    218,    217,    221,    218,
     220,    217,    220,    219,    219,    218,    218,    223,
     199,    205,    205,    203,    203,    204,    204,    204,
     203,    204,    203,    205,    203,    203,    203,    208,
     184,    189,    191,    187,    188,    188,    190,    189,
     187,    188,    189,    190,    188,    187,    188,    193,
     169,    173,    176,    172,    173,    173,    175,    173,
     172,    173,    174,    175,    172,    172,    173,    178,
     154,    158,    159,    159,    157,    158,    159,    158,
     158,    157,    159,    159,    158,    156,    158,    163,
     138,    144,    144,    143,    142,    143,    143,    144,
     142,    142,    144,    143,    144,    140,    144,    146,
     124,    128,    130,    127,    127,    127,    129,    128,
     127,    128,    128,    128,    127,    128,    126,    133,
     107,    114,    114,    112,    112,    112,    114,    112,
     113,    112,    112,    114,    112,    112,    111,    118,
      92,     98,     99,     98,     96,     97,     98,     98,
      97,     97,     97,     99,     97,     96,     96,    103,
      77,     83,     83,     83,     81,     82,     83,     83,
      81,     82,     82,     83,     82,     82,     81,     86,
      63,     67,     70,     66,     66,     66,     69,     67,
      67,     65,     68,     69,     66,     65,     67,     72,
      46,     54,     52,     53,     50,     51,     54,     51,
      52,     51,     52,     53,     52,     50,     51,     56,
      33,     37,     38,     36,     37,     35,     39,     36,
      35,     38,     36,     38,     36,     35,     36,     42,
      17,     21,     24,     20,     22,     21,     22,     21,
      21,     22,     21,     23,     20,     21,     21,     26,
       1,
};
const prog_uint8_t wav_res_bandlimited_nes_triangle_2[] PROGMEM = {
       6,      2,      3,      4,      3,      2,      5,      3,
       2,      5,      2,      3,      4,      4,      1,      6,
      16,     21,     18,     19,     19,     18,     20,     18,
      19,     18,     20,     18,     20,     18,     18,     21,
      32,     36,     34,     33,     36,     34,     34,     35,
      34,     34,     35,     34,     35,     34,     34,     36,
      47,     52,     50,     49,     50,     51,     48,     52,
      49,     50,     50,     50,     49,     52,     47,     53,
      63,     67,     65,     66,     65,     66,     65,     66,
      64,     67,     65,     66,     65,     66,     64,     67,
      80,     82,     81,     80,     83,     79,     82,     81,
      81,     81,     82,     80,     81,     82,     79,     84,
      94,     98,     96,     97,     97,     96,     96,     98,
      96,     96,     98,     95,     98,     97,     94,    100,
     109,    114,    112,    112,    112,    113,    111,    113,
     112,    112,    112,    112,    113,    112,    111,    115,
     124,    131,    126,    128,    128,    127,    128,    129,
     126,    129,    127,    128,    128,    128,    126,    130,
     141,    145,    143,    143,    144,    142,    144,    144,
     142,    144,    143,    144,    142,    145,    141,    146,
     157,    160,    158,    159,    159,    159,    158,    160,
     158,    159,    160,    158,    158,    161,    156,    162,
     172,    175,    175,    174,    175,    174,    174,    175,
     174,    174,    176,    173,    174,    176,    173,    176,
     188,    192,    189,    190,    190,    190,    190,    190,
     190,    189,    192,    188,    191,    190,    189,    192,
     203,    208,    204,    206,    205,    206,    206,    205,
     205,    206,    207,    203,    207,    206,    204,    207,
     220,    222,    221,    220,    222,    221,    221,    222,
     220,    221,    222,    220,    222,    221,    220,    223,
     235,    238,    236,    236,    237,    237,    237,    236,
     237,    237,    236,    237,    236,    238,    235,    239,
     249,    255,    251,    252,    253,    252,    252,    252,
     253,    251,    253,    253,    251,    252,    254,    250,
     238,    236,    237,    237,    236,    237,    237,    236,
     238,    235,    237,    238,    235,    237,    238,    234,
     224,    219,    222,    222,    219,    223,    220,    221,
     222,    221,    220,    222,    221,    221,    222,    219,
     207,    205,    206,    206,    204,    207,    205,    205,
     206,    206,    205,    206,    205,    205,    208,    202,
     193,    188,    191,    190,    189,    191,    190,    189,
     191,    190,    189,    191,    190,    189,    191,    188,
     177,    173,    175,    174,    175,    174,    174,    175,
     174,    175,    174,    175,    174,    173,    177,    172,
     161,    158,    158,    160,    158,    160,    158,    159,
     159,    159,    158,    160,    158,    159,    160,    157,
     145,    142,    144,    143,    143,    144,    143,    143,
     144,    143,    143,    143,    144,    143,    144,    141,
     131,    126,    127,    129,    127,    129,    127,    127,
     128,    128,    128,    128,    127,    127,    130,    125,
     115,    110,    113,    113,    111,    112,    113,    112,
     112,    112,    113,    111,    113,    112,    113,    110,
      99,     95,     97,     97,     96,     97,     97,     96,
      97,     96,     97,     97,     96,     97,     97,     95,
      83,     80,     81,     82,     80,     82,     80,     82,
      80,     82,     81,     81,     81,     80,     83,     79,
      68,     63,     67,     65,     65,     66,     66,     65,
      65,     66,     65,     67,     64,     66,     66,     64,
      52,     48,     51,     50,     49,     51,     50,     49,
      50,     51,     49,     50,     50,     50,     51,     48,
      36,     33,     35,     35,     33,     36,     33,     35,
      35,     33,     35,     35,     34,     33,     37,     31,
      22,     17,     20,     18,     19,     19,     18,     20,
      18,     19,     19,     19,     18,     19,     20,     17,
       5,
};
const prog_uint8_t wav_res_bandlimited_nes_triangle_3[] PROGMEM = {
      13,      8,      3,      3,      0,      4,      7,      7,
       8,      7,      3,      1,      2,      3,      9,     13,
      16,     19,     19,     20,     20,     19,     21,     23,
      21,     21,     19,     18,     18,     20,     22,     28,
      32,     33,     35,     36,     35,     35,     37,     36,
      38,     35,     35,     34,     33,     35,     39,     42,
      46,     49,     51,     51,     51,     51,     52,     51,
      52,     51,     51,     49,     49,     50,     54,     58,
      61,     64,     66,     67,     67,     66,     66,     68,
      67,     66,     66,     64,     65,     66,     70,     71,
      78,     79,     81,     82,     83,     81,     83,     82,
      81,     83,     81,     79,     81,     82,     84,     87,
      93,     94,     97,     97,     98,     98,     97,     97,
      98,     97,     96,     95,     97,     96,    100,    103,
     107,    110,    112,    114,    112,    113,    113,    113,
     112,    112,    112,    112,    110,    113,    115,    118,
     122,    125,    128,    129,    128,    129,    128,    127,
     128,    127,    128,    127,    126,    128,    130,    134,
     136,    142,    142,    145,    144,    144,    142,    144,
     143,    142,    143,    142,    143,    143,    145,    149,
     152,    156,    158,    161,    159,    159,    158,    159,
     158,    158,    158,    157,    159,    158,    161,    163,
     168,    172,    173,    175,    176,    174,    174,    173,
     174,    173,    173,    174,    173,    174,    176,    179,
     183,    186,    189,    192,    190,    190,    189,    188,
     189,    189,    188,    189,    190,    188,    192,    194,
     198,    201,    206,    205,    207,    206,    203,    205,
     202,    205,    204,    205,    204,    205,    206,    209,
     214,    217,    219,    223,    222,    220,    220,    219,
     218,    219,    221,    219,    221,    219,    223,    224,
     227,    233,    236,    237,    238,    237,    234,    233,
     234,    235,    235,    235,    237,    236,    237,    238,
     243,    247,    252,    254,    254,    252,    249,    248,
     247,    249,    252,    255,    253,    252,    247,    243,
     239,    236,    237,    235,    237,    234,    236,    232,
     235,    233,    238,    236,    239,    235,    233,    227,
     225,    221,    221,    220,    220,    220,    219,    219,
     218,    220,    220,    223,    221,    221,    216,    214,
     209,    207,    204,    205,    204,    204,    205,    203,
     203,    205,    205,    207,    206,    204,    203,    197,
     195,    190,    190,    189,    189,    189,    188,    189,
     188,    189,    191,    190,    190,    190,    187,    182,
     179,    177,    173,    173,    174,    173,    174,    173,
     174,    173,    174,    176,    175,    174,    171,    167,
     165,    160,    159,    157,    159,    157,    159,    157,
     159,    158,    159,    160,    160,    158,    156,    153,
     148,    145,    144,    142,    142,    143,    143,    142,
     144,    142,    145,    143,    145,    143,    140,    138,
     133,    130,    128,    127,    126,    128,    127,    128,
     128,    128,    127,    130,    128,    128,    125,    123,
     117,    115,    113,    111,    111,    112,    112,    113,
     112,    113,    113,    113,    113,    112,    111,    106,
     103,    100,     97,     95,     96,     97,     97,     97,
      97,     97,     98,     98,     97,     97,     96,     90,
      89,     83,     82,     81,     80,     80,     83,     81,
      83,     82,     81,     83,     82,     81,     80,     77,
      72,     69,     66,     65,     64,     66,     67,     66,
      68,     66,     67,     66,     67,     66,     65,     60,
      58,     54,     50,     50,     49,     50,     51,     52,
      51,     53,     50,     51,     52,     49,     50,     47,
      41,     39,     35,     34,     33,     35,     36,     37,
      36,     37,     35,     36,     35,     35,     34,     31,
      28,     23,     19,     18,     18,     19,     21,     22,
      22,     21,     20,     19,     20,     19,     19,     17,
      12,
};
const prog_uint8_t wav_res_bandlimited_nes_triangle_4[] PROGMEM = {
       9,      8,      5,      5,      3,      3,      2,      1,
       2,      1,      3,      3,      5,      6,      7,      9,
      11,     12,     14,     14,     17,     17,     18,     20,
      18,     21,     21,     21,     23,     22,     24,     24,
      26,     27,     28,     28,     31,     32,     32,     34,
      36,     35,     37,     39,     38,     40,     40,     41,
      42,     43,     43,     45,     45,     47,     47,     49,
      50,     51,     53,     53,     54,     56,     56,     57,
      58,     60,     59,     61,     61,     63,     63,     64,
      66,     65,     68,     69,     69,     70,     73,     72,
      74,     75,     75,     78,     77,     78,     80,     80,
      81,     83,     82,     83,     86,     85,     88,     87,
      90,     90,     91,     92,     94,     94,     96,     95,
      98,     98,     99,     99,    102,    100,    103,    104,
     104,    105,    107,    108,    108,    110,    111,    111,
     114,    114,    114,    116,    117,    117,    119,    119,
     120,    122,    121,    123,    125,    124,    126,    128,
     128,    129,    131,    131,    133,    133,    134,    136,
     136,    137,    138,    139,    139,    141,    142,    142,
     144,    144,    146,    147,    147,    150,    149,    152,
     152,    152,    155,    154,    157,    155,    159,    157,
     160,    160,    161,    162,    163,    164,    166,    166,
     167,    169,    170,    170,    172,    172,    174,    174,
     176,    176,    176,    179,    178,    180,    180,    183,
     181,    185,    184,    186,    187,    188,    190,    190,
     191,    192,    194,    193,    195,    196,    196,    198,
     198,    199,    200,    201,    202,    203,    205,    205,
     207,    207,    210,    210,    210,    213,    212,    214,
     214,    215,    217,    216,    217,    219,    219,    221,
     221,    223,    224,    225,    226,    228,    229,    229,
     232,    231,    233,    233,    234,    235,    235,    236,
     237,    237,    238,    239,    241,    241,    244,    245,
     246,    249,    248,    252,    252,    252,    255,    253,
     254,    254,    253,    252,    251,    250,    248,    245,
     246,    243,    242,    241,    238,    239,    237,    237,
     236,    235,    234,    235,    232,    234,    231,    231,
     230,    229,    228,    225,    226,    224,    223,    221,
     220,    220,    218,    218,    216,    217,    214,    215,
     213,    214,    211,    211,    210,    209,    208,    206,
     206,    205,    202,    203,    201,    200,    199,    198,
     197,    197,    196,    194,    194,    194,    191,    192,
     190,    190,    187,    188,    185,    186,    183,    182,
     183,    180,    179,    179,    178,    177,    177,    174,
     175,    173,    173,    172,    170,    169,    170,    167,
     166,    165,    165,    162,    163,    161,    160,    159,
     158,    158,    157,    155,    155,    154,    153,    152,
     152,    149,    149,    148,    146,    147,    144,    143,
     143,    142,    140,    140,    139,    138,    137,    136,
     135,    135,    133,    132,    132,    131,    129,    128,
     127,    126,    126,    123,    123,    123,    120,    121,
     119,    118,    118,    117,    115,    115,    114,    113,
     112,    111,    109,    110,    106,    108,    104,    106,
     102,    103,    102,    100,    100,     99,     98,     97,
      96,     96,     93,     95,     91,     92,     90,     90,
      87,     87,     86,     85,     84,     83,     81,     82,
      80,     79,     78,     79,     76,     76,     74,     75,
      72,     72,     71,     70,     67,     68,     67,     64,
      65,     63,     62,     62,     60,     61,     58,     58,
      58,     56,     56,     54,     53,     52,     52,     49,
      50,     47,     46,     46,     45,     43,     43,     41,
      42,     40,     39,     40,     37,     37,     37,     34,
      34,     34,     30,     31,     30,     27,     26,     27,
      23,     25,     22,     23,     21,     20,     21,     20,
      18,     19,     17,     16,     15,     14,     12,     10,
      10,
};
const prog_uint8_t wav_res_bandlimited_nes_triangle_5[] PROGMEM = {
       4,      3,      3,      2,      2,      1,      3,      1,
       1,      2,      1,      3,      2,      3,      2,      5,
       4,      5,      7,      5,      9,      8,     10,     10,
      12,     13,     13,     16,     17,     16,     20,     20,
      21,     22,     24,     25,     27,     26,     30,     29,
      31,     33,     32,     35,     36,     36,     37,     39,
      40,     40,     42,     43,     43,     44,     45,     47,
      47,     48,     49,     49,     52,     51,     52,     54,
      54,     56,     55,     58,     58,     59,     60,     61,
      63,     62,     64,     66,     66,     68,     67,     71,
      70,     71,     74,     73,     76,     75,     78,     79,
      79,     80,     82,     83,     84,     85,     86,     86,
      89,     89,     91,     90,     92,     94,     94,     95,
      95,     98,     98,     99,     99,    102,    101,    103,
     103,    105,    106,    106,    107,    109,    109,    110,
     112,    112,    114,    114,    115,    117,    117,    119,
     119,    121,    122,    122,    125,    124,    127,    126,
     129,    130,    130,    131,    133,    134,    135,    135,
     138,    138,    138,    141,    141,    142,    143,    144,
     145,    147,    146,    149,    149,    149,    152,    151,
     153,    154,    155,    155,    157,    157,    159,    160,
     159,    162,    163,    162,    165,    166,    166,    167,
     168,    170,    171,    171,    173,    174,    175,    175,
     178,    178,    179,    180,    182,    183,    184,    184,
     186,    188,    187,    190,    190,    191,    193,    193,
     195,    195,    196,    198,    198,    199,    200,    202,
     202,    202,    205,    204,    206,    207,    207,    208,
     210,    210,    211,    212,    213,    214,    215,    215,
     218,    217,    220,    219,    222,    222,    223,    224,
     227,    226,    228,    229,    231,    232,    233,    234,
     235,    237,    238,    239,    241,    240,    244,    244,
     244,    246,    247,    248,    249,    249,    250,    252,
     251,    253,    252,    254,    253,    254,    253,    255,
     254,    253,    255,    253,    253,    252,    253,    252,
     251,    250,    250,    248,    249,    246,    246,    245,
     244,    242,    242,    240,    240,    237,    237,    235,
     235,    233,    231,    231,    229,    228,    228,    224,
     226,    222,    223,    221,    220,    219,    218,    216,
     217,    214,    215,    212,    213,    210,    211,    209,
     208,    208,    206,    206,    205,    204,    202,    203,
     201,    200,    199,    199,    197,    197,    194,    196,
     192,    193,    192,    189,    190,    188,    187,    186,
     185,    184,    182,    182,    180,    180,    177,    178,
     176,    175,    173,    173,    172,    170,    170,    168,
     168,    166,    165,    165,    163,    162,    162,    160,
     159,    159,    158,    156,    156,    154,    154,    153,
     152,    151,    150,    148,    149,    147,    146,    145,
     145,    142,    143,    140,    141,    139,    138,    137,
     135,    136,    133,    133,    131,    131,    130,    127,
     128,    126,    125,    124,    122,    123,    120,    120,
     118,    117,    118,    114,    115,    113,    113,    110,
     112,    108,    109,    108,    106,    105,    105,    103,
     104,    101,    100,    101,     99,     97,     98,     95,
      96,     94,     93,     92,     91,     90,     90,     87,
      88,     85,     86,     83,     83,     82,     81,     79,
      78,     78,     76,     75,     74,     72,     73,     70,
      69,     69,     68,     65,     66,     64,     63,     63,
      60,     60,     60,     57,     58,     56,     55,     55,
      53,     52,     52,     51,     49,     50,     47,     48,
      46,     45,     44,     44,     43,     41,     40,     41,
      38,     37,     37,     35,     35,     33,     32,     31,
      30,     29,     27,     26,     25,     24,     23,     21,
      19,     20,     17,     16,     16,     14,     12,     12,
      11,      9,      9,      8,      6,      6,      5,      5,
       3,
};


const prog_uint8_t* const waveform_table[] = {
  wav_res_bandlimited_triangle_0,
  wav_res_bandlimited_triangle_1,
  wav_res_bandlimited_triangle_2,
  wav_res_bandlimited_triangle_3,
  wav_res_bandlimited_triangle_4,
  wav_res_bandlimited_triangle_5,
  wav_res_bandlimited_triangle_6,
  wav_res_bandlimited_triangle_6,
  wav_res_bandlimited_nes_triangle_0,
  wav_res_bandlimited_nes_triangle_1,
  wav_res_bandlimited_nes_triangle_2,
  wav_res_bandlimited_nes_triangle_3,
  wav_res_bandlimited_nes_triangle_4,
  wav_res_bandlimited_nes_triangle_5,
  wav_res_bandlimited_triangle_6,
  wav_res_bandlimited_triangle_6,
};


}  // namespace edges
